
// <copyright file="IAdapteeSelectionStrategy.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The AdaptedObjectSelectionStrategy interface.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Pooling
{
    /// <summary>
    /// The AdaptedObjectSelectionStrategy interface.
    /// </summary>
    /// <typeparam name="T">
    /// </typeparam>
    public interface IAdaptedObjectSelectionStrategy<in T>
    {
        #region Public Methods and Operators

        /// <summary>
        /// The can select this adaptedObject.
        /// </summary>
        /// <param name="adaptedObject">
        /// The adaptedObject.
        /// </param>
        /// <param name="isNewlyCreatedAdaptedObject">
        /// The is newly created adaptedObject.
        /// </param>
        /// <param name="tag">
        /// The tag.
        /// </param>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        bool CanSelectThisAdaptedObject(T adaptedObject, bool isNewlyCreatedAdaptedObject, object tag);

        #endregion Public Methods and Operators
    }
}
